package com.java2207.group1.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 15319 2022/7/26 15:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DischargeBo {

    @ExcelProperty(value = "编号")
    private Integer id;
    @ExcelProperty(value = "名字")
    private String name;

    @ExcelProperty(value = "年龄")
    private String age;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "监护人")
    private String guardian;

    @ExcelProperty(value = "出院时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dischargeDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getGuardian() {
        return guardian;
    }

    public void setGuardian(String guardian) {
        this.guardian = guardian;
    }

    public Date getDischargeDate() {
        return dischargeDate;
    }

    public void setDischargeDate(Date dischargeDate) {
        this.dischargeDate = dischargeDate;
    }
}
